1626A Equidistant Letters codeforces solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
int t;
cin>>t;
while(t--)
{
string s;
cin>>s;
sort(s.begin(),s.end());
cout<<s<<endl;
}
}
1626A Equidistant Letters codeforces solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
int t;
cin>>t;
while(t--)
{
string s;
cin>>s;
sort(s.begin(),s.end());
cout<<s<<endl;
}
}
0 Comments